.Net Framework > v2.0.50727 > System > Runtime > InteropServices > Marshal Marshal
Category
Class
Description
Provides a collection of methods for allocating unmanaged memory, copying unmanaged memory blocks, and converting managed to unmanaged types, as well as other miscellaneous methods used when interacting with unmanaged code.
Assembly
mscorlib
Character
sealed, public
Attributes
NameValue/Assignment
SuppressUnmanagedCodeSecurityAttribute
Ancestors
Object
Methods
AddRef(IntPtr)
AllocCoTaskMem(Int32)
AllocHGlobal(Int32)
AllocHGlobal(IntPtr)
BindToMoniker(String)
ChangeWrapperHandleStrength(Object,Boolean)
Copy(Byte[],Int32,IntPtr,Int32)
Copy(Char[],Int32,IntPtr,Int32)
Copy(Double[],Int32,IntPtr,Int32)
Copy(Int16[],Int32,IntPtr,Int32)
Copy(Int32[],Int32,IntPtr,Int32)
Copy(Int64[],Int32,IntPtr,Int32)
Copy(IntPtr,Byte[],Int32,Int32)
Copy(IntPtr,Char[],Int32,Int32)
Copy(IntPtr,Double[],Int32,Int32)
Copy(IntPtr,Int16[],Int32,Int32)
Copy(IntPtr,Int32[],Int32,Int32)
Copy(IntPtr,Int64[],Int32,Int32)
Copy(IntPtr,IntPtr[],Int32,Int32)
Copy(IntPtr,Single[],Int32,Int32)
Copy(IntPtr[],Int32,IntPtr,Int32)
Copy(Single[],Int32,IntPtr,Int32)
CreateAggregatedObject(IntPtr,Object)
CreateWrapperOfType(Object,Type)
DestroyStructure(IntPtr,Type)
FinalReleaseComObject(Object)
FreeBSTR(IntPtr)
FreeCoTaskMem(IntPtr)
FreeHGlobal(IntPtr)
GenerateGuidForType(Type)
GenerateProgIdForType(Type)
GetActiveObject(String)
GetComInterfaceForObject(Object,Type)
GetComInterfaceForObjectInContext(Object,Type)
GetComObjectData(Object,Object)
GetComSlotForMethodInfo(MemberInfo)
GetDelegateForFunctionPointer(IntPtr,Type)
GetEndComSlot(Type)
GetExceptionCode()
GetExceptionForHR(Int32)
GetExceptionForHR(Int32,IntPtr)
GetExceptionPointers()
GetFunctionPointerForDelegate(Delegate)
GetHINSTANCE(Module)
GetHRForException(Exception)
GetHRForLastWin32Error()
GetIDispatchForObject(Object)
GetIDispatchForObjectInContext(Object)
GetITypeInfoForType(Type)
GetIUnknownForObject(Object)
GetIUnknownForObjectInContext(Object)
GetLastWin32Error()
GetManagedThunkForUnmanagedMethodPtr(IntPtr,IntPtr,Int32)
GetMethodInfoForComSlot(Type,Int32,ComMemberType@)
GetNativeVariantForObject(Object,IntPtr)
GetObjectForIUnknown(IntPtr)
GetObjectForNativeVariant(IntPtr)
GetObjectsForNativeVariants(IntPtr,Int32)
GetStartComSlot(Type)
GetThreadFromFiberCookie(Int32)
GetTypedObjectForIUnknown(IntPtr,Type)
GetTypeForITypeInfo(IntPtr)
GetTypeInfoName(ITypeInfo)
GetTypeInfoName(UCOMITypeInfo)
GetTypeLibGuid(ITypeLib)
GetTypeLibGuid(UCOMITypeLib)
GetTypeLibGuidForAssembly(Assembly)
GetTypeLibLcid(ITypeLib)
GetTypeLibLcid(UCOMITypeLib)
GetTypeLibName(ITypeLib)
GetTypeLibName(UCOMITypeLib)
GetTypeLibVersionForAssembly(Assembly,Int32@,Int32@)
GetUniqueObjectForIUnknown(IntPtr)
GetUnmanagedThunkForManagedMethodPtr(IntPtr,IntPtr,Int32)
IsComObject(Object)
IsTypeVisibleFromCom(Type)
NumParamBytes(MethodInfo)
OffsetOf(Type,String)
Prelink(MethodInfo)
PrelinkAll(Type)
PtrToStringAnsi(IntPtr)
PtrToStringAnsi(IntPtr,Int32)
PtrToStringAuto(IntPtr)
PtrToStringAuto(IntPtr,Int32)
PtrToStringBSTR(IntPtr)
PtrToStringUni(IntPtr)
PtrToStringUni(IntPtr,Int32)
PtrToStructure(IntPtr,Object)
PtrToStructure(IntPtr,Type)
QueryInterface(IntPtr,Guid@,IntPtr@)
ReadByte(IntPtr)
ReadByte(IntPtr,Int32)
ReadByte(Object,Int32)
ReadInt16(IntPtr)
ReadInt16(IntPtr,Int32)
ReadInt16(Object,Int32)
ReadInt32(IntPtr)
ReadInt32(IntPtr,Int32)
ReadInt32(Object,Int32)
ReadInt64(IntPtr)
ReadInt64(IntPtr,Int32)
ReadInt64(Object,Int32)
ReadIntPtr(IntPtr)
ReadIntPtr(IntPtr,Int32)
ReadIntPtr(Object,Int32)
ReAllocCoTaskMem(IntPtr,Int32)
ReAllocHGlobal(IntPtr,IntPtr)
Release(IntPtr)
ReleaseComObject(Object)
ReleaseThreadCache()
SecureStringToBSTR(SecureString)
SecureStringToCoTaskMemAnsi(SecureString)
SecureStringToCoTaskMemUnicode(SecureString)
SecureStringToGlobalAllocAnsi(SecureString)
SecureStringToGlobalAllocUnicode(SecureString)
SetComObjectData(Object,Object,Object)
SizeOf(Object)
SizeOf(Type)
StringToBSTR(String)
StringToCoTaskMemAnsi(String)
StringToCoTaskMemAuto(String)
StringToCoTaskMemUni(String)
StringToHGlobalAnsi(String)
StringToHGlobalAuto(String)
StringToHGlobalUni(String)
StructureToPtr(Object,IntPtr,Boolean)
ThrowExceptionForHR(Int32)
ThrowExceptionForHR(Int32,IntPtr)
UnsafeAddrOfPinnedArrayElement(Array,Int32)
WriteByte(IntPtr,Byte)
WriteByte(IntPtr,Int32,Byte)
WriteByte(Object,Int32,Byte)
WriteInt16(IntPtr,Char)
WriteInt16(IntPtr,Int16)
WriteInt16(IntPtr,Int32,Char)
WriteInt16(IntPtr,Int32,Int16)
WriteInt16(Object,Int32,Char)
WriteInt16(Object,Int32,Int16)
WriteInt32(IntPtr,Int32)
WriteInt32(IntPtr,Int32,Int32)
WriteInt32(Object,Int32,Int32)
WriteInt64(IntPtr,Int32,Int64)
WriteInt64(IntPtr,Int64)
WriteInt64(Object,Int32,Int64)
WriteIntPtr(IntPtr,Int32,IntPtr)
WriteIntPtr(IntPtr,IntPtr)
WriteIntPtr(Object,Int32,IntPtr)
ZeroFreeBSTR(IntPtr)
ZeroFreeCoTaskMemAnsi(IntPtr)
ZeroFreeCoTaskMemUnicode(IntPtr)
ZeroFreeGlobalAllocAnsi(IntPtr)
ZeroFreeGlobalAllocUnicode(IntPtr)
Fields
SystemDefaultCharSize
SystemMaxDBCSCharSize
Tags
0103E2B958, 02E3ABA98D, 0376596F91
Software for developers
.Net Components
Delphi Components
Software for Android Developers
More information resources
WinAPI Programmer's Reference
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database